-- GENERATED SPELL FOR [Caza'rez] --


function spell0_17558(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17558', 5279, 1)
end

function spell1_17558(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17558', 2285, 1)
end

function Sorts_17558(pUnit, Event)
local choix_sorts_17558 = math.random(0, 1)
if choix_sorts_17558 == 0 then
pUnit:RegisterEvent('spell0_17558', 1, 1)
end
if choix_sorts_17558 == 1 then
pUnit:RegisterEvent('spell1_17558', 1, 1)
end
end

function mob17558_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17558', math.random(1500, 3000), 1)
end

function mob17558_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17558_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17558_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17558, 1, 'mob17558_Action')
RegisterUnitEvent(17558, 2, 'mob17558_Leave')
RegisterUnitEvent(17558, 3, 'mob17558_Kill')
RegisterUnitEvent(17558, 4, 'mob17558_Die')
